home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / Installation Folder / ResEdit Install < prev    next >
Text File  |  1990-07-23  |  1KB  |  49 lines

  1. #    R E S E D I T   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either ResEdit 1.2 or 2.0b2 from the 
  7. #    E.T.O. #1 distribution compact disk into a folder called "ResEdit Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {SystemFolder}    - the path to the folder containing the currently active System
  17. #
  18. #    {DestVolume}    - the name of the volume from which the Installer was launched
  19. #
  20. #    {ResEditOption}    - a flag used to indicate which version of ResEdit to install
  21. #
  22.  
  23.  
  24. If    "{ResEditOption}" == "1"        ### install ResEdit 1.2
  25.     set Source    "{CDVolume}Tools - Objects:ResEdit:ResEdit 1.2:"
  26. Else If    "{ResEditOption}" == "2"    ### install ResEdit 2.0b2
  27.     set Source    "{CDVolume}Tools - Objects:ResEdit:ResEdit 2.0b2:"
  28. Else
  29.     Exit 1
  30. End
  31.  
  32.  
  33.  
  34. ###    See if a folder called "ResEdit Folder" already exists, 
  35. ###    if so, rename it to "ResEdit Folder.Old"
  36.  
  37. if "`Exists -d "{DestVolume}ResEdit Folder"`"
  38.     if "`Exists -d "{DestVolume}ResEdit Folder.Old"`"
  39.         Delete -y "{DestVolume}ResEdit Folder.Old"
  40.     End
  41.  
  42.     Rename -y "{DestVolume}ResEdit Folder"     "{DestVolume}ResEdit Folder.Old"
  43. End
  44.  
  45. Duplicate -y "{Source}"        "{DestVolume}ResEdit Folder:"
  46.  
  47. ### That's It!
  48.  
  49. Exit 0